package com.newland.zxy;

import redis.clients.jedis.Jedis;

/**
 * @author zhangxuyuan
 * @version 1.0
 * @date 2021/1/14
 */
public class Main {

    public static void main(String[] args) {
        //更多案例在test文件夹
        Jedis jedis=new Jedis("127.0.0.1",6379);

        String zxy = jedis.set("Main::zxy::StringTest", "zxy");

        System.out.println(zxy);

        Boolean exists = jedis.exists("Main::zxy::StringTest");

        jedis.expire("Main::zxy::StringTest",100);

    }
}
